<include file="public@header" />
<style type="text/css">
	input[type="radio"], input[type="checkbox"]{
		margin:12px 3px 12px 20px;
	}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs" >
			<li><a href="{:url('stripe/statistics')}">统计数据</a></li>
			<li class="active"><a href="javascript:;">导入数据</a></li>
			<li ><a href="{:url('stripe/addhost')}" >添加主机</a></li>
			<li ><a href="{:url('stripe/logs')}" >导入日志</a></li>
		</ul>

	    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('stripe/import')}">
	        <div class="form-group">
	            <label for="input-stripe_name" class="col-sm-2 control-label">选择主机<span class="form-required">*</span></label>
	            <div class="col-md-6 col-sm-10">
	            	<volist name="list"  id="vo" key="k">
	                	<input type="radio"  style="<if condition='$k eq 1'>margin-left: 0</if>" name="host" value="{$vo}">{$vo}<sup style="color: red">#</sup>
	            	</volist>
	            </div>
	        </div>
	        <div class="form-group">
	            <label for="input-stripe_url" class="col-sm-2 control-label">表格类型<span class="form-required">*</span></label>
           	 	<div class="col-md-6 col-sm-10">
	                <input type="radio" style="margin-left: 0" name="exceltype" value="1">余额
	                <input type="radio" name="exceltype" value="2">拒付
	            </div>
	        </div>
	        <div class="form-group">
	            <label for="input-stripe_url" class="col-sm-2 control-label">导入文件<span class="form-required">*</span></label>
	            <div class="col-md-6 col-sm-10">
					 <input id="excel-1" type="hidden" name="excel_url" >
					 <input  id="excel-1-name" type="text" name="excel_name" placeholder="导入表格名称" class="form-control"  style="width: 240px; display: inline;">
					 <a style="padding: 7px 8px; display: inline;" href="javascript:uploadOne('Excel上传','#excel-1','file');" class="btn btn-sm btn-primary btn-danger">选择上传文件</a>

				</div>
	        </div>
	        <div class="form-group">
	            <div class="col-sm-offset-2 col-sm-10" style="margin-top: 50px;">
	                <button type="submit" class="btn btn-primary js-ajax-submit" >{:lang('SAVE')}</button>
	                <a class="btn btn-default" href="{:url('stripe/index')}">{:lang('BACK')}</a>
	            </div>
	        </div>
	    </form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
